The <prev> element is a task element
that instructs the device to remove the current URL from the history stack
and open the previous URL. If no previous URL exists on the history stack,
specifying <prev> has no effect.
Syntax
<prev>content</prev>
where content represents the
variables to set when opening the previous URL:
content
You can optionally specify one or
more variables in a <prev> statement:
IMPORTANT
Unlike other WML elements that have content, specifying
content for the <prev> element is optional. If you do not
specify any content, you must use the syntax <prev/> rather
than <prev>content</prev>.
Example
<wml> <head> <meta forua="true" content="true"/> </head> <!--This is the first card--> <card id="card1"> <onevent type="onenterforward"> <go href="#card2"> <setvar
name="Var1" value="Telephone"/> </go> </onevent> <do type="accept" label="MENU"> <go href="prevIndex.wml"/> </do> <p> Card 1 <br/> Var1 = $(Var1). <br/> Click Menu to return to the test index. </p> </card> <!--This is the second card--> <card id="card2"> <p> <do type="accept" label="PREV"> <prev> <setvar name="Var1"
value="32"/> </prev> </do> Card 2 <br/> Var1 = $(Var1). <br/> Click PREV to go to Card 1. </p> </card> </wml>
The following WML illustrates a <prev>
element that does not contain any content.